package com.example.demo.pojo.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;


/**
 * @Author mhx
 * @date 2022-11-17-3:25 下午
 */
@Data
public class LoginVo {
    @Length(min = 6,max = 30,message = "用户名长度必须在6-30之间")
    private String userName;
    @Pattern(regexp = "^[A-Za-z0-9]+$",message = "密码必须由数字跟字母组成")
    private String passWord;
}
